Skip to main content

ModifySnatEntry

Description

Call the ModifySnatEntry interface to modify the specified SNAT entry.

Request Method

POST

Request Path

/apsara/route/Vpc/ModifySnatEntry

Request Parameters Common Parameters

NameLocationTypeRequiredSample valueDescription
SnatEntryNameBODYstringNoSnatEntry-1the name of the SNAT entry. is 2 to 128 characters in length and must start with a letter or Chinese, but you cannot use http:// or https:// beginning.
regionIdBODYstringYesNo sample value for this parameter.region id
SnatEntryIdBODYstringYessnat-bp1vcgcf8tm0plqcg****The ID of the SNAT entry to be modified.
RegionIdBODYstringYescn-qingdao-env17-d0the region ID where the NAT gateway is located.
SnatIpBODYstringYes47.XX.XX.98public IP address in SNAT entry. Multiple IPs are separated by half-width commas (,).
ClientTokenBODYstringNo02fb3da4-130e-11e9-8e44-001****Ensure request idempotence. Generate a parameter value from your client to ensure that the parameter value is unique between different requests. ClientToken only ASCII characters are supported and cannot exceed 64 characters.
versionBODYstringNo2016-01-01version of api
SnatTableIdBODYstringYesstb-8vbczigrhop8x5u3t****The ID of the SNAT table where the SNAT entry is located.

Return data

NameTypeSample valueDescription
RequestIDstring1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DCRequest id

Example

Successful Response example

{
"RequestID":"1E3D5A1E0-67CA-43DA-24BC-EAF2D5A1E4DC"
}

Failed Response example

{
"errorSample":
{
"resultCode":-1,
"resultMsg":"system error",
"result":null
}

}